package com.mdd.admin.validate;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("驾驶员信息搜素参数")
public class DriverInfoSearchValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户编码")
    private String userNo;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "有效期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date idValidityTime;

    @ApiModelProperty(value = "身份证正面")
    private String frontUrl;

    @ApiModelProperty(value = "身份证反面")
    private String oppositeUrl;

    @ApiModelProperty(value = "准驾车型")
    private Long driveType;

    @ApiModelProperty(value = "驾驶证有效期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date driveValidityTime;

    @ApiModelProperty(value = "驾驶证照片")
    private String driveUrl;

    @ApiModelProperty(value = "初领驾驶证时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date issuedDate;
}
